package com.per.mybootall.es.server.impl;

import com.per.mybootall.es.ElasticSearchHighUtils;
import com.per.mybootall.es.server.ElasticSearchServer;
import org.elasticsearch.client.RestHighLevelClient;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 *
 * @author: yyy
 * Date: 2022/5/26
 * Time: 16:16
 * Description:
 */
@Service
public class ElasticSearchServerImpl implements ElasticSearchServer {
    @Resource
    private RestHighLevelClient restHighLevelClient;

    //分页查询es
    @Override
    public Map getListPage(Map params) throws IOException {
        ElasticSearchHighUtils elasticSearchHighUtils=new ElasticSearchHighUtils();
        elasticSearchHighUtils.testSearchByPage(params);
        return null;
    }

    //根据id查询详情
    @Override
    public Map getDetailById(Map params) {

        return null;
    }

    //导出
    @Override
    public List<Map> exportList(Map params) {

        return null;
    }
}
